
import { getdata } from './request.js'

// 用户主页
export const userInfoAPI = async (data) => {
	return getdata({
		url: '/userInfo',
		method: 'post',
		data
	})
}
// 个人主页
export const userIndexAPI = async (data) => {
	return getdata({
		url: '/userIndex',
		method: 'post',
		data
	})
}
//用户编辑
export const userUpdateAPI = async (data) => {
	return getdata({
		url: '/userUpdate',
		method: 'post',
		data
	})
}
// 相关列表 
export const userGatherListAPI = async (data) => {
	return getdata({
		url: '/userGatherList',
		method: 'post',
		data
	})
}
// 拉票帮 
export const spokespersonAPI = async (data) => {
	return getdata({
		url: '/spokesperson',
		method: 'post',
		data
	})
}
// 收益明细 
export const earningsListAPI = async (data) => {
	return getdata({
		url: '/earningsList',
		method: 'post',
		data
	})
}
// 提现
export const withdrawAPI = async (data) => {
	return getdata({
		url: '/withdraw',
		method: 'post',
		data
	})
}
// 提现记录 
export const withdrawListAPI = async (data) => {
	return getdata({
		url: '/withdrawList',
		method: 'post',
		data
	})
}